<!DOCTYPE html>
<html lang="zh-hans">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<title>
		充值
	</title>
	<link rel="stylesheet" href="__TEMPLATE__/webfile/layer.css" id="layui_layer_skinlayercss">
	<link rel="stylesheet" href="__TEMPLATE__/webfile/main.css">
	<script type="text/javascript" src="__TEMPLATE__/sysme/js/jquery-1.9.1.min.js"></script>
	<script src="__SYSMET__/lib/layer/2.4/layer.js" type="text/javascript"></script>
	<style>
		.zffs {
			width: 100%;
			height: 30px;
			border-bottom: 1px solid #ccc;
			padding: 10px 0;
		}

		.zffs li {
			width: auto;
			height: 30px;
			float: left;
			line-height: 30px;
		}

		.zffs li a {
			display: block;
			padding-bottom: 3px;
			color: black;
			height: 25px;
			margin: 0 auto;
			text-align: center;
			text-decoration: none;
			padding: 0 15px 5px;
		}

		.zffs li span {
			display: block;
			padding-bottom: 3px;
			color: black;
			height: 25px;
			margin: 0 auto;
			text-align: center;
			text-decoration: none;
			padding: 0 15px 5px;
		}

		.zffs li .show {
			border-bottom: 2px solid #fa5a1c;
			color: #fa5a1c;
		}

		.xzfs h2 {
			font-size: 14px;
			padding-left: 13px;
			line-height: 31px;
			margin-top: 20px;
			color: #333;
			font-weight: 300;
		}

		.xzfs label {
			display: block;
			overflow: hidden;
			margin-left: 14%;
			height: 30px;
		}

		.xzfs label input {
			display: block;
			float: left;
			margin-top: 7px;
			margin-right: 4px;
		}

		.xzfs label span {
			display: block;
			float: left;
			margin-top: 4px;
		}

		.xzf div {
			overflow: hidden;
			margin-bottom: 10px;
		}

		.xzf div span {
			display: block;
			font-size: 13px;
			font-weight: bold;
			float: left;
			height: 32px;
			line-height: 32px;
		}

		.xzf div>input {
			display: block;
			float: left;
			width: 40%;
			text-indent: 5px;
		}

		.xzf div select {
			display: block;
			float: left;
			width: 40%;
			line-height: 20px;
			height: 32px;
		}

		.xzf .czje {
			width: 40%;
			height: 50px;
			margin-left: 64px;
		}

		.xzf .czje span {
			float: left;
			display: block;
			width: 60px;
			height: 30px;
			line-height: 30px;
			border-radius: 8px;
			border: 1px solid #ccc;
			text-align: center;
			line-height: 30px;
			margin-top: 10px;
			margin-right: 11px;
			font-weight: normal;
		}

		i {
			font-style: normal;
		}

		.zaixian_show {
			position: absolute;
			top: 700px;
			left: 900px;
		}

		.zaixian_hide {
			position: relative;
			top: 0;
			left: 0;
		}
	</style>
</head>

<body cz-shortcut-listen="true">
<div class="header">
	<div class="main main_btm_border">
		<div class="left logo">
			<a href="{:url('index/home')}" class="logo-link">
						<span class="logo_image">
						</span>
				<style>
					.logo_image {
						background-image:url("__ATTACHMENT__/{$logo.logoimg}")!important
					}
				</style>
			</a>
		</div>
		<div class="right login_and_userinfo_1">
			<div class="login_header">
						<span class="welcome">
						</span>
				<div class="mobile_download" style="cursor:pointer">
					<i class="iconfont">
						
					</i>
					<i class="iconfont">
						
					</i>
							<span class="">
								手机app下载
							</span>
				</div>
			</div>
		</div>
	</div>
</div>
<div id="model_2" class="model_2" style="display:none">
	<div class="model_header">
		<h1>
			温馨提醒
		</h1>
	</div>
	<div class="model_body">
				<span id="model_content">
				</span>
	</div>
	<div class="foot_succ">
		<a onclick="jQuery.modal.close()" class="btn btn-default btn-radius">
			确定
		</a>
	</div>
</div>
<div class="main usercenter">
	<div class="user_topup">
		<div class="user_menu left">
			<h2>会员中心</h2>
			<ul>
				<li><i class="iconfont"></i>
					<a href="{:url('user/index')}">个人中心</a>
				</li>
				<li class="hover"><i class="iconfont"></i>
					<a class="user_goto_finance" href="{:url('user/recharge')}">财务中心</a>
				</li>
				<li><i class="iconfont"></i>
					<a href="{:url('user/callRecord')}">交易记录</a>
				</li>
				<!-- <li><i class="iconfont"></i><a href="{:url('user/detail')}">详细设定</a></li> -->
				<li><i class="iconfont"></i>
					<a href="{:url('user/peilvdetail')}">赔率详情</a>
				</li>
				<li><i class="iconfont"></i>
					<a href="{:url('user/message')}">信息公告</a>
				</li>
				<li><i class="iconfont"></i><a href="{:url('user/djsm')}">等级说明</a></li>
			</ul>

			<h2>代理中心</h2>
			<ul>

				<li><i class="iconfont"></i>
					<a class="user_goto_finance" href="{:url('user/dlCentent')}">代理说明</a>
				</li>
				{if($f.dl==1)}
				<li><i class="iconfont"></i>
					<a href="{:url('user/dailibaobiao')}">代理报表</a>
				</li>
				<li><i class="iconfont"></i>
					<a href="{:url('user/xiajibaobiao')}">下级报表</a>
				</li>
				<li><i class="iconfont"></i>
					<a href="{:url('user/xiajikaihu')}">下级开户</a>
				</li>
				<!--<li><i class="iconfont"></i>
					<!--<a href="{:url('user/xiajiguanli')}">下级管理</a>
				</li>-->
				<li><i class="iconfont"></i>
					<a href="{:url('user/touzhumingxi')}">投注明细</a>
				</li>
				<li><i class="iconfont"></i>
					<a href="{:url('user/jiaoyimingxi')}">交易明细</a>
				</li>
				{else/}
				<li><i class="iconfont"></i>
					<a href="{:url('user/shenqing')}">代理申请</a>
				</li>
				{/if}
			</ul>
		</div>
		<div class="user_right right" style="height:775px;">

			<div class="user_main">
				<div class="user_header">
					<div class="user_header_nav">
						<ul>
							<li class="hover">
								<a href="{:url('user/recharge')}">充值</a>
							</li>
							<li>
								<a href="{:url('user/drawMoney')}">提现</a>
							</li>
							<li>
								<a href="{:url('user/rechargeRecord')}">充值记录</a>
							</li>
							<li>
								<a href="{:url('user/drawMoneyRecord')}">提现记录</a>
							</li>
							<li>
								<a href="{:url('user/other')}">其他记录</a>
							</li>
						</ul>
					</div>
				</div>
				<div class="user_body" style="padding:0;">
					<ul class="zffs">
						<li style="margin-left:3%;">
							<a href="javascript:;" class="show" id="pay_2">在线支付</a>
						</li>
						<li>
							<a href="javascript:;" id="pay_1">线下支付</a>
						</li>
						<li style="float:right;">
							<span>账户金额：{$user_all.je}</span>
						</li>
					</ul>

					<div class="topup_main" style="height:680px;width:100%;">
						<div class="img_class" id="img_pay_1" style="display:none;margin:10px auto;">
							<h2 style="font-size:16px;margin-bottom:10px;margin-left:20px;">选择支付渠道</h2>


							<!--**********线下支付****************-->
							<div style="margin-left:110px;overflow: hidden;" class="zxwy">
								<label style="display:block;float:left;overflow: hidden;margin-bottom:10px;margin-top:3px;width:74px;border:2px dashed red;padding:4px 10px;" id="zx_1">
									<!--<input style="float:left;margin-right:5px;margin-top:4px;" type="radio" checked  name="zx_pay" />-->
									<span style="float:left;font-size:14px;">支付宝支付</span>
								</label>
								<label style="display:block;float:left; overflow: hidden;margin-bottom:10px;margin-top:3px;width:56px;margin-left:60px;border:2px dashed #ccc;padding:4px 10px;" id="zx_2">
									<!--<input style="float:left;margin-right:5px;margin-top:4px;" type="radio"  name="zx_pay" />-->
									<span style="float:left;font-size:14px;"> 微信支付</span>
								</label>
								<label style="display:block;float:left; overflow: hidden;margin-bottom:10px;margin-top:3px;width:56px;margin-left:60px;border:2px dashed #ccc;padding:4px 10px;" id="zx_3">
									<!--<input style="float:left;margin-right:5px;margin-top:4px;" type="radio"  name="zx_pay" />-->
									<span style="float:left;font-size:14px;"> 银联支付</span>
								</label>

							</div>

							<div id="online_zx_3" class="right-div hide" style="margin:10px auto;display:none;margin-left:102px;" dat-type="bank">
								<div style="">
									<h2 style="font-size:15px;margin-bottom:10px;">选择账户:</h2>
									<div style="overflow: hidden;margin-left:15px;">
										{foreach($data.bank as $vb)}
										<div id="Offline_{$vb.id}" class="bank_zh" style="float:left;overflow: hidden;width:auto;margin-right:10px;height:30px;border:1px dashed #807d7d;padding:5px;">
											<img style="width:30px;float:left;margin-right:5px;margin-top:7px;" src="__TEMPLATE__/mobile/index/img/yl.png" />
											<p style="float:left;height:100%;line-height:30px;font-size:14px;color:#807d7d;">{$vb.xx_test}</p>
										</div>
										{/foreach}
									</div>
								</div>

								<div class="main_header">
									<form method="post" action="{:url('Processing/transferAccounts')}">
										<input type="hidden" name="pay_class" value="bank">
										<input type="hidden" name="account" id="xs_bank_pay">
										<div class="user">
											<em>
												会员账号:
											</em>
													<span>
												{$user_all.username}
											</span>
										</div>
										<div class="money" style="overflow: hidden;">
											<label for="" style="float:left;">
												<em class="red">
													＊
												</em>
												充值金额:
											</label>
											<div class="form" style="position:static;float:left;">
												<div class="form_group">
													<input type="number" maxlength="8" value="100" onchange="if(this.value<=0) this.value='';" placeholder="请输入充值金额，至少10.00元" name="amount" required="required">
												</div>
											</div>

										</div>
												<span class="remark" style="margin-left:20px;height:28px;line-height:16px;font-size:12px;display:block;">
													<span class="red">
													注意
												</span> ：单笔充值限额: 最低
												<span class="red">
													10.00
												</span> 元，最高
												<span class="red">
													99999999.00
												</span> 元
												</span>
										<div class="money">
											<label for="">
												<em class="red">
													＊
												</em>
												验证信息:
											</label>
											<div class="form">
												<div class="form_group">
													<input type="text" placeholder="请填写您的银行卡号" name="words" required="required">
												</div>
											</div>
										</div>
										<div class="money">
											<label for="">
												<em class="red">
													＊
												</em>
												存入时间:
											</label>
											<div class="form">

												<div class="times1">

												</div>
												<input type="hidden" value="{$time|date='Y-m-d H:i:s',###}" placeholder="请填写充值时间" name="recharge_time">
											</div>

										</div>

										<div style="text-align: center;width:435px;">
											<span style="color:#FF0000;margin-left:4%;">银 行 名 称：&nbsp;&nbsp;<span id="bank_mc">{$bank.xx_bankname}</span></span><br />
											<span style="color:#FF0000;margin-left:4%;">收 款 账 号：<span id="bank_num">{$bank.xx_bankno}</span>&nbsp;&nbsp;</span><br />
											<span style="color:#FF0000;margin-left:4%;">收 款 姓 名：<span id="bank_name">{$bank.xx_bankren}</span>&nbsp;&nbsp;</span><br />
										</div>
										<input style="margin-left:90px;height:35px;width:265px;margin-top:25px;line-height:16px;" type="submit" value="提交" class="btn btn-default btn-radius">

									</form>
								</div>
								<script>
									$(document).ready(function () {
										//时间函数：
										setInterval(function(){
											fnDate();
										},1000);
										//js 获取当前时间
										function fnDate(){
											var date=new Date();
											var year=date.getFullYear();//当前年份
											var month=date.getMonth();//当前月份
											var data=date.getDate();//天
											var hours=date.getHours();//小时
											var minute=date.getMinutes();//分
											var second=date.getSeconds();//秒
											var time=year+"-"+fnW((month+1))+"-"+fnW(data)+" "+fnW(hours)+":"+fnW(minute)+":"+fnW(second);
											$('.times1').get(0).innerText=time;
										}
										//补位 当某个字段不是两位数时补0
										function fnW(str){
											var num;
											str>9?num=str:num="0"+str;
											return num;
										}
									})
								</script>
							</div>
							<div id="online_zx_2" class="hide" style="margin:10px auto;display:none;margin-left:102px;" dat-type="wx">
								<div style="">
									<h2 style="font-size:15px;margin-bottom:10px;">选择账户:</h2>
									<div style="overflow: hidden;margin-left:15px;">
										{foreach($data.wechat as $vw)}
										<div id="Offline_{$vw.id}" class="wx_zh" style="float:left;overflow: hidden;width:auto;margin-right:10px;height:30px;border:1px dashed #807d7d;padding:5px;">
											<img style="width:30px;float:left;margin-right:5px;margin-top:3px;" src="__TEMPLATE__/mobile/index/img/wx.png" />
											<p style="float:left;height:100%;line-height:30px;font-size:14px;color:#807d7d;">{$vw.xx_test}</p>
										</div>
										{/foreach}
									</div>
								</div>
								<div class="main_header">
									<form method="post" action="{:url('Processing/transferAccounts')}">
										<input type="hidden" name="pay_class" value="wx">
										<input type="hidden" name="account" id="xs_wx_pay">
										<div class="user">
											<em>
												会员账号:
											</em>
													<span>
												{$user_all.username}
											</span>
										</div>
										<div class="money" style="overflow: hidden;">
											<label for="" style="float:left;">
												<em class="red">
													＊
												</em>
												充值金额:
											</label>
											<div class="form" style="position:static;float:left;">
												<div class="form_group">
													<input type="number" maxlength="8" value="100" onchange="if(this.value<=0) this.value='';" placeholder="请输入充值金额，至少10.00元" name="amount" required="required">
												</div>
											</div>

										</div>
												<span class="remark" style="margin-left:20px;height:28px;line-height:16px;font-size:12px;display:block;">
													<span class="red">
													注意
												</span> ：单笔充值限额: 最低
												<span class="red">
													10.00
												</span> 元，最高
												<span class="red">
													99999999.00
												</span> 元
												</span>
										<div class="money">
											<label for="">
												<em class="red">
													＊
												</em>
												验证信息:
											</label>
											<div class="form">
												<div class="form_group">
													<input type="text" placeholder="请填您的微信账号" name="words" required="required">
												</div>
											</div>
										</div>
										<div class="money">
											<label for="">
												<em class="red">
													＊
												</em>
												存入时间:
											</label>
											<div class="form ">
												<div class="times">

												</div>
												<input type="hidden" value="{$time|date='Y-m-d H:i:s',###}" placeholder="" name="recharge_time">
											</div>

										</div>
										<div style="text-align: center;width:435px;">
											<img id="wx_img" src="__ATTACHMENT__/{$weixin.xx_erweima}" width="200" height="200"><br />
											<span style="color:#FF0000">收 款 微 信 账 号：&nbsp;&nbsp;<span id="wx_name">{$weixin.xx_name}</span></span><br />
										</div>
										<input style="margin-left:90px;height:35px;width:265px;margin-top:25px;line-height:16px;" type="submit" value="提交" class="btn btn-default btn-radius">
										<script>
											$(document).ready(function () {
												//时间函数：
												setInterval(function(){
													fnDate();
												},1000);
												//js 获取当前时间
												function fnDate(){
													var date=new Date();
													var year=date.getFullYear();//当前年份
													var month=date.getMonth();//当前月份
													var data=date.getDate();//天
													var hours=date.getHours();//小时
													var minute=date.getMinutes();//分
													var second=date.getSeconds();//秒
													var time=year+"-"+fnW((month+1))+"-"+fnW(data)+" "+fnW(hours)+":"+fnW(minute)+":"+fnW(second);
													$('.times').get(0).innerText=time;
												}
												//补位 当某个字段不是两位数时补0
												function fnW(str){
													var num;
													str>9?num=str:num="0"+str;
													return num;
												}
											})
										</script>
									</form>
								</div>
							</div>
							<div id="online_zx_1" class="hide" style="margin:10px auto;display:black;margin-left:102px;" dat-type="ali">
								<div style="">
									<h2 style="font-size:15px;margin-bottom:10px;">选择账户:</h2>
									<div style="overflow: hidden;margin-left:15px;">
										{foreach($data.ali as $va)}
										<div id="Offline_{$va.id}" class="ali_zh" style="float:left;overflow: hidden;width:auto;margin-right:10px;height:30px;border:1px dashed #807d7d;padding:5px;">
											<img style="width:30px;float:left;margin-right:5px;margin-top:3px;" src="__TEMPLATE__/mobile/index/img/zfb.png" />
											<p style="float:left;height:100%;line-height:30px;font-size:14px;color:#807d7d;">{$va.xx_test}</p>
										</div>
										{/foreach}
									</div>
								</div>
								<div class="main_header">
									<form method="post" action="{:url('Processing/transferAccounts')}">
										<input type="hidden" name="pay_class" value="ali">
										<input type="hidden" name="account" id="xs_zfb_pay">
										<div class="user">
											<em>
												会员账号:
											</em>
													<span>
												{$user_all.username}
											</span>
										</div>
										<div class="money">
											<label for="">
												<em class="red">
													＊
												</em>
												充值金额:
											</label>
											<div class="form">
												<div class="form_group">
													<input type="number" maxlength="8" value="100" onchange="if(this.value<=0) this.value='';" placeholder="请输入充值金额，至少10.00元" name="amount" required="required">
												</div>
											</div>

										</div>
												<span class="remark" style="margin-left:20px;height:28px;line-height:16px;font-size:12px;display:block;">
													<span class="red">
													注意
												</span> ：单笔充值限额: 最低
												<span class="red">
													10.00
												</span> 元，最高
												<span class="red">
													99999999.00
												</span> 元
												</span>
										<div class="money">
											<label for="">
												<em class="red">
													＊
												</em>
												验证信息:
											</label>
											<div class="form">
												<div class="form_group">
													<input type="text" placeholder="请填您的支付宝账号" name="words" required="required">
												</div>
											</div>
										</div>
										<div class="money">
											<label for="">
												<em class="red">
													＊
												</em>
												存入时间:
											</label>
											<div class="form">
												<div class="times2">

												</div>
												<input type="hidden" value="{$time|date='Y-m-d H:i:s',###}" placeholder="请填写充值时间" name="recharge_time">
											</div>

										</div>
										<div style="text-align: center;width:435px;">
											<img id="zfb_img" src="__ATTACHMENT__/{$ali.xx_erweima}" style="margin-top:10px;" width="190" height="190"><br />
											<span style="color:#FF0000">收 款 支 付 宝 账 号：&nbsp;&nbsp;<span id="zfb_name">{$ali.xx_name}</span></span><br />
										</div>

										<input style="margin-left:90px;height:35px;width:265px;margin-top:25px;line-height:16px;" type="submit" value="提交" class="btn btn-default btn-radius">

									</form>
								</div>
							</div>
							<script>
								$(document).ready(function () {
									//时间函数：
									setInterval(function(){
										fnDate();
									},1000);
									//js 获取当前时间
									function fnDate(){
										var date=new Date();
										var year=date.getFullYear();//当前年份
										var month=date.getMonth();//当前月份
										var data=date.getDate();//天
										var hours=date.getHours();//小时
										var minute=date.getMinutes();//分
										var second=date.getSeconds();//秒
										var time=year+"-"+fnW((month+1))+"-"+fnW(data)+" "+fnW(hours)+":"+fnW(minute)+":"+fnW(second);
										$('.times2').get(0).innerText=time;
									}
									//补位 当某个字段不是两位数时补0
									function fnW(str){
										var num;
										str>9?num=str:num="0"+str;
										return num;
									}
								})
							</script>
						</div>
						<div id="img_pay_2" class="img_class" style="margin:10px auto;display:block;">

							<h2 style="font-size:16px;margin-bottom:10px;margin-left:20px;" id="mm">选择支付渠道</h2>

							<!--**********线上充值****************-->
							<div style="margin-left:110px;overflow: hidden;" id="zaixian_header">
								{if($info.0.open && $info.0.level_open)}
								<label style="display:block;float:left;overflow: hidden;margin-bottom:10px;margin-top:3px;width:56px;border:2px dashed #ccc;padding:4px 10px;" id="label_1">
									<!--<input style="float:left;margin-right:5px;margin-top:4px;" type="radio"  name="online_pay" />-->
									<span style="float:left;font-size:14px;">高通支付</span>
								</label> {/if}
								{if($info.1.open && $info.1.level_open)}
								<label style="display:block;float:left; overflow: hidden;margin-bottom:10px;margin-top:3px;width:56px;margin-left:50px;border:2px dashed #ccc;padding:4px 10px;" id="label_2">
									<!--<input style="float:left;margin-right:5px;margin-top:4px;" type="radio"  name="online_pay" />-->
									<span style="float:left;font-size:14px;"> 速付支付</span>
								</label> {/if}
								{if($info.4.open && $info.4.level_open)}
								<label style="display:block;float:left; overflow: hidden;margin-bottom:10px;margin-top:3px;width:56px;margin-left:50px;border:2px dashed #ccc;padding:4px 10px;" id="label_5">
									<!--<input style="float:left;margin-right:5px;margin-top:4px;" type="radio"  name="online_pay" />-->
									<span style="float:left;font-size:14px;"> 快付支付</span>
								</label> {/if}
								{if($info.2.open && $info.2.level_open)}
								<label style="display:block;float:left; overflow: hidden;margin-bottom:10px;margin-top:3px;width:84px;margin-left:50px;border:2px dashed #ccc;padding:4px 10px;" id="label_3">
									<!--<input style="float:left;margin-right:5px;margin-top:4px;" type="radio"  name="online_pay" />-->
									<span style="float:left;font-size:14px;"> 微信扫码支付</span>
								</label> {/if} {if($info.3.open && $info.3.level_open)}
								<label style="display:block;float:left; overflow: hidden;margin-bottom:10px;margin-top:3px;width:98px;margin-left:50px;border:2px dashed #ccc;padding:4px 10px;" id="label_4">
									<!--<input style="float:left;margin-right:5px;margin-top:4px;" type="radio"  name="online_pay" />-->
									<span style="float:left;font-size:14px;"> 支付宝扫码支付</span>
								</label> {/if}
							</div>
							<script>
								$("#label_1").click(function() {
									$("#label_1").css('border', '2px dashed red')
									$("#label_2").css('border', '2px dashed #ccc')
									$("#label_3").css('border', '2px dashed #ccc')
									$("#label_4").css('border', '2px dashed #ccc')
									$("#label_5").css('border', '2px dashed #ccc')
								})

								$("#label_2").click(function() {
									$("#label_2").css('border', '2px dashed red')
									$("#label_1").css('border', '2px dashed #ccc')
									$("#label_3").css('border', '2px dashed #ccc')
									$("#label_4").css('border', '2px dashed #ccc')
									$("#label_5").css('border', '2px dashed #ccc')
								})
								$("#label_3").click(function() {
									$("#label_3").css('border', '2px dashed red')
									$("#label_2").css('border', '2px dashed #ccc')
									$("#label_1").css('border', '2px dashed #ccc')
									$("#label_4").css('border', '2px dashed #ccc')
									$("#label_5").css('border', '2px dashed #ccc')
								})
								$("#label_4").click(function() {
									$("#label_4").css('border', '2px dashed red')
									$("#label_2").css('border', '2px dashed #ccc')
									$("#label_3").css('border', '2px dashed #ccc')
									$("#label_1").css('border', '2px dashed #ccc')
									$("#label_5").css('border', '2px dashed #ccc')
								})
								$("#label_5").click(function() {
									$("#label_4").css('border', '2px dashed #ccc')
									$("#label_2").css('border', '2px dashed #ccc')
									$("#label_3").css('border', '2px dashed #ccc')
									$("#label_1").css('border', '2px dashed #ccc')
									$("#label_5").css('border', '2px dashed red')
								})
							</script>
							<div style="margin-top:15px;margin-left:110px;position:relative;" id="zaixian">

								{if($info.0.open && $info.0.level_open)}
								<form method="post" enctype="" class="online_pay zaixian_show" id="form_label_1">
									<div class="xzf">
										<div>
											<span>账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号&nbsp;:&nbsp;</span>
											<input type="text" style="border:1px solid #ccc;height:30px;" id="gt_username" value="{$username}" readonly="readonly" />
										</div>
										<div>
											<span>充值金额&nbsp;:&nbsp;</span>
											<input type="number" style="border:1px solid #ccc;height:30px;" id="gt_amount" />
											<p class="czje">
												<span>50元</span>
												<span>100元</span>
												<span>200元</span>
												<span style="float:right;margin-right:0;">500元</span>
											</p>
										</div>
										<div style="width:385px;" id="gt_hq">
											<span style="height:100%;">选择银行&nbsp;:&nbsp;</span>
											<div>
												{foreach(pay_type_gt as $kgt=>$vgt)}

												<label style="display:block;width:auto;padding:5px;overflow:hidden;border:1px solid #ccc;height:22px;line-height:22px;text-align: center;float:left;margin-right:15px;margin-top:10px;">
													<!--<input type="radio" name="gt_radio" style="float:left;margin-top:5px;margin-right:3px;" value="{$kgt}"/>-->
													<i style="display:block;float:left;" class="gt_pay" id="{$kgt}">{$vgt}</i>
												</label> {/foreach}
											</div>
										</div>

									</div>
									<input style="margin-left:60px;height:35px;width:296px;margin-top:25px;line-height:16px;" type="button" value="提交" id="tijiao_gtpay" class="btn btn-default btn-radius">
								</form>
								{/if} {if($info.1.open && $info.1.level_open)}
								<form method="post" enctype="" class="online_pay zaixian_show" id="form_label_2">
									<div class="xzf">
										<div>
											<span>账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号&nbsp;:&nbsp;</span>
											<input type="text" style="border:1px solid #ccc;height:30px;" id="sf_username" value="{$username}" readonly="readonly" />
										</div>
										<div>
											<span>充值金额&nbsp;:&nbsp;</span>
											<input type="number" style="border:1px solid #ccc;height:30px;" id="sf_amount" />
											<p class="czje">
												<span>50元</span>
												<span>100元</span>
												<span>200元</span>
												<span style="float:right;margin-right:0;">500元</span>
											</p>
										</div>
										<div style="width:385px;" id="sf_hq">
											<span style="height:100%;">选择银行&nbsp;:&nbsp;</span>

											<div>
												{foreach(pay_type_sf as $ksf=>$vsf)}

												<label style="display:block;width:auto;padding:5px;overflow:hidden;border:1px solid #ccc;height:22px;line-height:22px;text-align: center;float:left;margin-right:15px;margin-top:10px;">
													<!--<input type="radio" name="gt_radio" style="float:left;margin-top:5px;margin-right:3px;" value="{$ksf}" />-->
													<i style="display:block;float:left;" class="sf_pay" id="{$ksf}">{$vsf}</i>
												</label> {/foreach}
											</div>
										</div>

									</div>
									<input style="margin-left:60px;height:35px;width:296px;margin-top:25px;line-height:16px;" type="button" value="提交" id="tijiao_sfpay" class="btn btn-default btn-radius">
								</form>
								{/if}
								{if($info.4.open && $info.4.level_open)}
								<form method="post" enctype="" class="online_pay zaixian_show" id="form_label_5">
									<div class="xzf">
										<div>
											<span>账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号&nbsp;:&nbsp;</span>
											<input type="text" style="border:1px solid #ccc;height:30px;" id="kf_username" value="{$username}" readonly="readonly" />
										</div>
										<div>
											<span>充值金额&nbsp;:&nbsp;</span>
											<input type="number" style="border:1px solid #ccc;height:30px;" id="kf_amount" />
											<p class="czje">
												<span>50元</span>
												<span>100元</span>
												<span>200元</span>
												<span style="float:right;margin-right:0;">500元</span>
											</p>
										</div>
										<div style="width:385px;" id="kf_hq">
											<span style="height:100%;">选择银行&nbsp;:&nbsp;</span>
											<div>
												{foreach(pay_type_kf as $kkf=>$vkf)}

												<label style="display:block;width:auto;padding:5px;overflow:hidden;border:1px solid #ccc;height:22px;line-height:22px;text-align: center;float:left;margin-right:15px;margin-top:10px;">

													<i style="display:block;float:left;" class="kf_pay" id="{$kkf}">{$vkf}</i>
												</label> {/foreach}
											</div>
										</div>

									</div>
									<input style="margin-left:60px;height:35px;width:296px;margin-top:25px;line-height:16px;" type="button" value="提交" id="tijiao_kfpay" class="btn btn-default btn-radius">
								</form>
								{/if}
								{if($info.2.open && $info.2.level_open)}

								<form id="form_label_3" class="zaixian_show">
									<div class="xzf">
										<input type="hidden" value="wechat" id="wx_c" />
										<div>
											<span>账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号&nbsp;:&nbsp;</span>
											<input type="text" style="border:1px solid #ccc;height:30px;" id="wx_username" value="{$username}" readonly="readonly" />
										</div>

										<div>
											<span>充值金额&nbsp;:&nbsp;</span>
											<input type="hidden" style=" float: left;width: 40%;text-indent: 5px;border:1px solid #ccc;height:30px;line-height:30px;" id="wx_amount" />
											<p class="czje">
												<span>50元</span>
												<span>100元</span>
												<span>200元</span>
												<span>500元</span>
												<span>800元</span>
												<span>1000元</span>
												<span>1500元</span>
											</p>
										</div>
										<!-- <div style="width:360px;" id="sf_hq">
                                            <span  style="height:100%;">选择账户&nbsp;:&nbsp;</span>

                                            <div >
                                                {foreach($online_ac.wechat as $vac)}
                                                <div id="Online_{$vac.id}" class="wx_xs_zh" style="float:left;overflow: hidden;width:auto;margin-right:10px;height:30px;border:1px dashed #807d7d;padding:5px;">
                                                    <img style="width:30px;float:left;margin-right:5px;margin-top:3px;" src="__TEMPLATE__/mobile/index/img/wx.png" />
                                                    <p style="float:left;height:100%;line-height:30px;font-size:14px;color:#807d7d;">{$vac.name}</p>
                                                </div>
                                                {/foreach}
                                            </div>
                                        </div> -->
										<div style="width:600px;height:500px;border:1px solid #ccc;position:fixed;top:50%;left:50%;margin-left:-225px;margin-top:-250px;background:#fff;display:none;padding-top:20px; " id="wx_pay">
											<div style="text-align:center;">
												<div style="width:18px;height:18px;border:1px solid #ccc;line-height:18px;text-align: center;font-weight: bold;position:absolute;top:10px;right:10px;" id="wx_close">X</div>
												<span style="color:#FF0000;display:block;margin:0 auto;width:100%;text-align: center;"> 充值 账 号：&nbsp;&nbsp;<i id="wx_pay_name"  style="font-style: normal;"></i></span>
												<span style="color:#FF0000;display:block;margin:0 auto;width:100%;text-align: center;"> 充值金额：&nbsp;&nbsp;<i id="wx_pay_money"  style="font-style: normal;"></i></span>
												<img id="wx_pay_img" src="__ATTACHMENT__/" style="margin-top:10px;" width="190"><br />
												<span style="color:#FF0000;display:block;margin:0 auto;width:100%;text-align: center;">[打开微信，扫码支付]</span>
												<div style="width:100%;color:#FF0000;text-align: center;" id="wx_djs">05分00秒失效</div>
												<div style="width:60px;padding:10px 15px;border:1px solid #ccc;text-align: center;line-height:20px;height:20px;margin:10px auto 0;" id="wx_pay_success">我已支付</div>
											</div>
										</div>

									</div>
									<input style="margin-left:60px;height:35px;width:296px;margin-top:25px;line-height:16px;" type="button" value="提交" id="tijiao_wxpay" class="btn btn-default btn-radius">
								</form>
								{/if} {if($info.3.open && $info.3.level_open)}
								<form id="form_label_4" class="zaixian_show">
									<div class="xzf">
										<input type="hidden" value="alipay" id="zfb_c" />
										<div>
											<span>账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号&nbsp;:&nbsp;</span>
											<input type="text" style="border:1px solid #ccc;height:30px;" id="zfb_username" value="{$username}" readonly="readonly" />
										</div>

										<div>
											<span>充值金额&nbsp;:&nbsp;</span>
											<input type="hidden" style=" float: left;width: 40%;text-indent: 5px;border:1px solid #ccc;height:30px;line-height:30px;" id="zfb_amount" />
											<p class="czje">
												<span>50元</span>
												<span>100元</span>
												<span>200元</span>
												<span>500元</span>
												<span>800元</span>
												<span>1000元</span>
												<span>1500元</span>
											</p>
										</div>
										<!-- <div style="width:360px;" id="sf_hq">
                                            <span  style="height:100%;">选择账户&nbsp;:&nbsp;</span>

                                            <div >
                                                {foreach($online_ac.alipay as $vac)}
                                                <div id="Online_{$vac.id}" class="zfb_xs_zh" style="float:left;overflow: hidden;width:auto;margin-right:10px;height:30px;border:1px dashed #807d7d;padding:5px;">
                                                    <img style="width:30px;float:left;margin-right:5px;margin-top:3px;" src="__TEMPLATE__/mobile/index/img/zfb.png" />
                                                    <p style="float:left;height:100%;line-height:30px;font-size:14px;color:#807d7d;">{$vac.name}</p>
                                                </div>
                                                {/foreach}
                                            </div>
                                        </div> -->

										<div style="width:600px;height:500px;border:1px solid #ccc;position:fixed;top:50%;left:50%;margin-left:-225px;margin-top:-250px;background:#fff;display:none;padding-top:20px; " id="zfb_pay">
											<div style="width:18px;height:18px;border:1px solid #ccc;line-height:18px;text-align: center;font-weight: bold;position:absolute;top:10px;right:10px;" id="zfb_close">X</div>
											<div style="text-align:center;">
												<span style="color:#FF0000;display:block;margin:0 auto;width:100%;text-align: center;"> 充值 账 号：&nbsp;&nbsp;<i id="zfb_pay_name" style="font-style: normal;"></i></span>
												<span style="color:#FF0000;display:block;margin:0 auto;width:100%;text-align: center;"> 充值金额：&nbsp;&nbsp;<i id="zfb_pay_money"  style="font-style: normal;"></i></span>
												<img id="zfb_pay_img" src="__ATTACHMENT__/" style="margin-top:10px;" width="190"><br />
												<span style="color:#FF0000;display:block;margin:0 auto;width:100%;text-align: center;">[打开支付宝，扫码支付]</span>
												<div style="width:100%;color:#FF0000;display:text-align: center;" id="zfb_djs">05分00秒失效</div>
												<div style="width:60px;padding:10px 15px;border:1px solid #ccc;text-align: center;line-height:20px;height:20px;margin:10px auto 0;" id="zfb_pay_success">我已支付</div>
											</div>
										</div>
									</div>

									<input style="margin-left:60px;height:35px;width:296px;margin-top:25px;line-height:16px;" type="button" value="提交" id="tijiao_zfbpay" class="btn btn-default btn-radius">
								</form>
								{/if}
							</div>
						</div>
						<script>
							$(function() {
								$(".zffs li a").click(function() {
									$(".img_class").css("display", "none");
									$(".zffs li a").removeClass("show");
									$(this).addClass('show')
									var id = $(this).attr("id");
									$('#img_' + id + '').css("display", "block");
								})
							});
							$(function() {
								$("#img_pay_2>div>label").click(function() {

									//$("#img_pay_2 div>form").css("display", "none");
									//$("#img_pay_2 div>form").addClass('zaixian_show')
									$("#img_pay_2 div>form").css({
										"position": "absolute",
										"top": "9000px",
										"left": "9000px"
									});
									var id = $(this).attr("id");
									//$('#form_' + id + '').css("display", "block");
									$('#form_' + id + '').css({
										"position": "",
										"top": "",
										"left": ""
									});
									$('#form_' + id + '').removeClass('zaixian_show')
								})
							});
							$(function() {
								$("#img_pay_1 .zxwy label").click(function() {

									$("#img_pay_1>.hide").css("display", "none");
									var id = $(this).attr("id");
									$('#online_' + id + '').css("display", "block");
								})
							});
						</script>

						<div class="recharge_bank_select" style="display:none">
							<form method="post" id="online_bank_form">
								<div class="form_group">
									<em>
										会员账号:
									</em>
											<span>
											liangb000
										</span>
								</div>
								<div class="form_group">
									<label for="">
										充值金额:
									</label>
											<span id="recharge_amount">
										</span>
								</div>
								<div class="form_group">
									<label id="pay_bank">
										选择支付银行:
									</label>
								</div>
								<div class="from_group" style="color:red">
									<label style="padding-left:4px">
										* 提交订单前，请先进行转帐操作,以便更迅速的为您服务
									</label>
								</div>
								<div class="pay_sk2_main" id="pay_sk2_main">

								</div>
								<input type="button" value="确定" id="confirm_bt" class="btn btn-default btn-radius">
							</form>
						</div>

						<div style="display:none">
							<form id="go_to_third" method="get" action="https://c79k.vip/Finance/index.html" target="_blank">
								<input type="submit">
							</form>
						</div>
					</div>
				</div>

			</div>
		</div>
	</div>
</div>
<div id="tishi" style="width:220px;height:40px;opacity: .6;background:#000;position:fixed;left:50%;margin-left:-100px;top:100px;display:none;top:30%;"></div>
<div id="tishi_nr" style="width:200px;height:auto;color:#fff;font-size:14px;text-align:center;position:fixed;left:50%;top:30%;margin-left:-100px;z-index: 1;display:none;padding:10px;"></div>
</body>

<script>
	var gt_pay = true
	var sf_pay = true
	var zfb_minute = "4";
	var zfb_second = "60";
	var minute = "4";
	var second = "60";
	var aid = ''
	var aclass = ''
	var cid = ''

	//***********线上默认选第一个*******************
	var zaixian = document.getElementById('zaixian_header')
	var zaixian_header_one = zaixian_header.getElementsByTagName('label')[0]
	//		var zaixian_header_radio = zaixian_header_one.getElementsByTagName('input')[0]
	var zaixian = document.getElementById('zaixian')
	var zaixian_one = zaixian.getElementsByTagName('form')[0]
	zaixian_header_one.style.border = '2px dashed red'
	//		zaixian_header_radio.checked = 'checked'
	zaixian_header_one
	zaixian_one.style.position = 'relative'
	zaixian_one.style.top = '0'
	zaixian_one.style.left = '0'

	//***********线下默认选支付宝第一个账户*******************
	var allAi = document.getElementsByClassName('ali_zh')[0]
	allAi.style.border = '1px solid red'
	cid = allAi.id
	$('#xs_zfb_pay').val(cid)
	$.ajax({
		type: "post",
		url: "{:url('index/User/getOfflineInfoOne')}",
		data: {
			"id": cid
		},
		success: function(data) {
			//console.log(data)
			var data = data
			if(data.status == '200') {
				$('#zfb_img').attr('src', '__ATTACHMENT__/' + data.data.xx_erweima)
				$('#zfb_name').html(data.data.xx_name)
			} else {
				layer.msg(data.info, {
					time: 2000
				});
			}
		}
	});

	//************线上高通充值****************
	var pay_type=''
	$('.gt_pay').click(function(){
		$('.gt_pay').parent('label').css('border','1px solid #ccc')
		$(this).parent('label').css('border','1px solid red')
		pay_type=$(this).attr('id')
	})
	$('#tijiao_gtpay').click(function() {
		$('.xzf .czje').children('span').css('background', '')
		$('.xzf .czje').children('span').css('color', '#000')
		var username = $('#gt_username').val(),
				amount = $('#gt_amount').val();

		if(amount == '') {

			layer.msg('请填写充值金额', {
				time: 2000
			});
		} else if(amount < 50) {
			layer.msg('充值金额最低为五十元', {
				time: 2000
			});
		} else if(amount > 50000) {
			layer.msg('充值金额最高为五万元', {
				time: 2000
			});
		} else if(pay_type=='') {
			layer.msg('选择充值的银行', {
				time: 2000
			});
		} else {
			if(gt_pay == false) return;
			gt_pay = false
			$(this).val('提交中');
			$.ajax({
				type: "post",
				url: "{:url('index/paygt/initPay')}",
				data: {
					"username": username,
					"amount": amount,
					"pay_type": pay_type
				},
				success: function(data) {
					$('#tijiao_gtpay').val('提交');
					var dataJson = data
					if(dataJson.status == '200') {
						location.href = dataJson.data
						gt_pay = true
					} else {
						layer.msg(dataJson.info, {
							time: 2000
						});
						gt_pay = true
					}
					$('.gt_pay').parent('label').css('border','1px solid #ccc')
				}
			});
		}
	})




	//************线上快付充值****************
	var kf_pay_type=''
	$('.kf_pay').click(function(){
		$('.kf_pay').parent('label').css('border','1px solid #ccc')
		$(this).parent('label').css('border','1px solid red')
		kf_pay_type=$(this).attr('id')
	})
	$('#tijiao_kfpay').click(function() {
		$('.xzf .czje').children('span').css('background', '')
		$('.xzf .czje').children('span').css('color', '#000')
		var username = $('#kf_username').val(),
				amount = $('#kf_amount').val();
		if(amount == '') {
			layer.msg('请填写充值金额', {
				time: 2000
			});
		} else if(amount < 50) {
			layer.msg('充值金额最低为五十元', {
				time: 2000
			});
		} else if(amount > 50000) {
			layer.msg('充值金额最高为五万元', {
				time: 2000
			});
		} else if(kf_pay_type=='') {
			layer.msg('选择充值的银行', {
				time: 2000
			});
		} else {
			window.location.href="{:url('index/paykf/initPay')}?username="+username+"&amount="+amount+"&pay_type="+kf_pay_type
//				$.ajax({
//					type: "post",
//					url: "{:url('index/paygt/initPay')}",
//					data: {
//						"username": username,
//						"amount": amount,
//						"pay_type": pay_type
//					},
//					success: function(data) {
//						$('#tijiao_gtpay').val('提交');
//						var dataJson = data
//						if(dataJson.status == '200') {
//							location.href = dataJson.data
//							gt_pay = true
//						} else {
//							layer.msg(dataJson.info, {
//								time: 2000
//							});
//							gt_pay = true
//						}
//                      $('.gt_pay').parent('label').css('border','1px solid #ccc')
//					}
//				});
		}
	})

	//************线上速付充值****************
	var bank_code=''
	$('.sf_pay').click(function(){
		$('.sf_pay').parent('label').css('border','1px solid #ccc')
		$(this).parent('label').css('border','1px solid red')
		bank_code=$(this).attr('id')
	})
	$('#tijiao_sfpay').click(function() {
		$('.xzf .czje').children('span').css('background', '')
		$('.xzf .czje').children('span').css('color', '#000')

		var username = $('#sf_username').val(),
				amount = $('#sf_amount').val();
		if(amount == '') {
//
			layer.msg('请填写充值金额', {
				time: 2000
			});
		} else if(amount < 50) {
//
			layer.msg('充值金额最低为五十元', {
				time: 2000
			});
		} else if(amount > 50000) {
//
			layer.msg('充值金额最高为五万元', {
				time: 2000
			});
		} else if(bank_code=='') {
//
			layer.msg('选择充值的银行', {
				time: 2000
			});
		} else {
			if(sf_pay == false) return;
			sf_pay = false
			$(this).val('提交中');
			$.ajax({
				type: "post",
				url: "{:url('index/paysf/initPay')}",
				data: {
					"username": username,
					"amount": amount,
					"bank_code": bank_code
				},
				success: function(data) {
					$('#tijiao_sfpay').val('提交');
					var dataJson = data
					if(dataJson.status == '200') {
						location.href = dataJson.data
						sf_pay = true
					} else {
//
						layer.msg(dataJson.info, {
							time: 2000
						});
						sf_pay = true
					}
					$('.sf_pay').parent('label').css('border','1px solid #ccc')
				}
			});
		}

	})

	//******************快捷选金额**********
	$('.xzf .czje').children('span').click(function() {
		$('.xzf .czje').children('span').css('background', '')
		$('.xzf .czje').children('span').css('color', '#000')
		$(this).css('background', '#d91d36')
		$(this).css('color', '#fff')
		aclass = $(this).attr('class')
		var str = $(this).html();
		var id = $(this).parent().prev().attr('id')
		var s = str.substring(0, str.length - 1)
		$('#' + id).val(s);
	})

	// ********************线下微信充值***************

	$("#zx_2").click(function() {
		var allWx_zh = document.getElementsByClassName('wx_zh')[0]
		$('.wx_zh').css('border', '1px dashed #807d7d')
		$("#zx_1").css('border', '2px dashed #ccc')
		$("#zx_2").css('border', '2px dashed red')
		$("#zx_3").css('border', '2px dashed #ccc')
		cid = allWx_zh.id
		$('#xs_wx_pay').val(cid)
		allWx_zh.style.border = '1px solid #f00'

	})
	$('.wx_zh').click(function() {
		$('.wx_zh').css('border', '1px dashed #807d7d')
		$(this).css('border', '1px solid red')
		cid = $(this).attr('id')
		$('#xs_wx_pay').val(cid)
		$.ajax({
			type: "post",
			url: "{:url('index/User/getOfflineInfoOne')}",
			data: {
				"id": cid
			},
			success: function(data) {
				console.log(data)
				var data = data
				if(data.status == '200') {
					$('#wx_img').attr('src', '__ATTACHMENT__/' + data.data.xx_erweima)
					$('#wx_name').html(data.data.xx_name)
				} else {
//
					layer.msg(dataJson.info, {
						time: 2000
					});
				}
			}
		});
	})

	// ********************线下银联充值***************

	$("#zx_3").click(function() {
		var allBank_zh = document.getElementsByClassName('bank_zh')[0]
		$('.bank_zh').css('border', '1px dashed #807d7d')
		$("#zx_1").css('border', '2px dashed #ccc')
		$("#zx_2").css('border', '2px dashed #ccc')
		$("#zx_3").css('border', '2px dashed red')
		cid = allBank_zh.id
		$('#xs_bank_pay').val(cid)
		allBank_zh.style.border = '1px solid #f00'

	})

	$('.bank_zh').click(function() {
		$('.bank_zh').css('border', '1px dashed #807d7d')
		$(this).css('border', '1px solid red')
		cid = $(this).attr('id')
		$('#xs_bank_pay').val(cid)
		$.ajax({
			type: "post",
			url: "{:url('index/User/getOfflineInfoOne')}",
			data: {
				"id": cid
			},
			success: function(data) {
				//console.log(data)
				var data = data
				if(data.status == '200') {
					$('#bank_mc').html(data.data.xx_bankname)
					$('#bank_num').html(data.data.bankno)
					$('#bank_name').html(data.data.xx_bankren)
				} else {
//
					layer.msg(dataJson.info, {
						time: 2000
					});
				}
			}
		});
	})

	// ********************线下支付宝充值***************
	$("#zx_1").click(function() {
		var allAli_zh = document.getElementsByClassName('ali_zh')[0]
		$('.ali_zh').css('border', '1px dashed #807d7d')
		$("#zx_1").css('border', '2px dashed red')
		$("#zx_2").css('border', '2px dashed #ccc')
		$("#zx_3").css('border', '2px dashed #ccc')
		cid = allAli_zh.id
		$('#xs_zfb_pay').val(cid)
		allAli_zh.style.border = '1px solid #f00'

	})

	$('.ali_zh').click(function() {
		$('.ali_zh').css('border', '1px dashed #807d7d')
		$(this).css('border', '1px solid red')
		cid = $(this).attr('id')
		$('#xs_zfb_pay').val(cid)
		$.ajax({
			type: "post",
			url: "{:url('index/User/getOfflineInfoOne')}",
			data: {
				"id": cid
			},
			success: function(data) {
				//console.log(data)
				var data = data
				if(data.status == '200') {
					$('#zfb_img').attr('src', '__ATTACHMENT__/' + data.data.xx_erweima)
					$('#zfb_name').html(data.data.xx_name)
				} else {
//
					layer.msg(dataJson.info, {
						time: 2000
					});
				}
			}
		});
	})

	// ********************线上微信只付***************
	$('.wx_xs_zh').click(function() {
		$('.wx_xs_zh').css('border', '1px dashed #807d7d')
		$(this).css('border', '1px solid red')
		aid = $(this).attr('id')
	})
	$('#tijiao_wxpay').click(function() {
		if(aclass == '') {
			layer.msg('请选择充值金额', {
				time: 2000,
			});

		} else {
			var minute = "4";
			var second = "60";
			var wx_pay_type = $('#wx_c').val();
			var wx_pay_money = $('#wx_amount').val();
			$.ajax({
				type: "post",
				url: "{:url('index/pay/buildCode')}",
				data: {
					'type': 'wechat',
					'money': wx_pay_money,
					'username': $('#wx_username').val()
				},
				success:function(data) {
					$('#tijiao_wxpay').val('提交')
					console.log(data)
					if(data.status == '200') {
						$('#wx_pay').show()
						$('.wx_xs_zh').css('border', '1px dashed #807d7d')
						$('.xzf .czje').children('span').css('background', '')
						$('.xzf .czje').children('span').css('color', '#000')
						$('#wx_pay_img').attr('src', '__CODE__/' + data.data.code)
						$('#wx_pay_name').html($('#wx_username').val())
						$('#wx_pay_money').html(data.data.money)
						var wx_timer = setInterval(DownTick_wx, 1000);
						$('.wx_xs_zh').css('border', '1px dashed #807d7d')
						$('.xzf .czje').children('span').css('background', '')
						$('.xzf .czje').children('span').css('color', '#000')
						aid = ''
						aclass = ''
					} else {

						layer.msg('请选择充值金额', {
							time: 2000
						});
						$('.wx_xs_zh').css('border', '1px dashed #807d7d')
						$('.xzf .czje').children('span').css('background', '')
						$('.xzf .czje').children('span').css('color', '#000')
						aid = ''
						aclass = ''
					}
				}
			});
		}

	})

	function DownTick_wx() {
		var wx_sss = $('#zfb_djs').html()
		if(second == '01' && minute == '00') {

			$('#wx_pay').hide()
			window.location.reload()
		};
		second--;
		if(minute == '4') {
			minute = "0" + minute;
		}
		if(minute == '0') {
			minute = "0" + minute;
		}
		if(second == 00) {
			second = 59;
			minute--;
			if(minute < 10) minute = "0" + minute;
		};
		if(second < 10) second = "0" + second;
		$('#wx_djs').html(minute + '分' + second + '秒失效')

	}
	$('#wx_close').click(function() {
		$('#wx_pay').hide()
		window.location.reload()

	})
	$('#wx_pay_success').click(function() {
		$('#wx_pay').hide()
		window.location.reload()

	})

	//*********************线上支付宝充值********************
	$('.zfb_xs_zh').click(function() {
		$('.zfb_xs_zh').css('border', '1px dashed #807d7d')
		$(this).css('border', '1px solid red')
		aid = $(this).attr('id')
	})
	$('#tijiao_zfbpay').click(function() {

		if(aclass == '') {

			layer.msg('请选择充值金额', {
				time: 2000,

			});
		} else {
			var zfb_minute = "4";
			var zfb_second = "60";
			$(this).val('提交中')
			var zfb_pay_type = $('#zfb_c').val();
			var zfb_pay_money = $('#zfb_amount').val();
			$.ajax({
				type: "post",
				url: "{:url('index/pay/buildCode')}",
				data: {
					'type': 'alipay',
					'money': zfb_pay_money,
					'username': $('#zfb_username').val()
				},
				success: function(data) {
					$($('#tijiao_zfbpay')).val('提交')
					console.log(data)
					if(data.status == '200') {
						$('#zfb_pay').show()
						$('.zfb_xs_zh').css('border', '1px dashed #807d7d')
						$('.xzf .czje').children('span').css('background', '')
						$('.xzf .czje').children('span').css('color', '#000')

						$('#zfb_pay_img').attr('src', '__CODE__/' + data.data.code)
						$('#zfb_pay_name').html($('#zfb_username').val())
						$('#zfb_pay_money').html(data.data.money)
						var zfb_timer = setInterval(DownTick_zfb, 1000);
						$('.zfb_xs_zh').css('border', '1px dashed #807d7d')
						$('.xzf .czje').children('span').css('background', '')
						$('.xzf .czje').children('span').css('color', '#000')
						aid = ''
						aclass = ''
					} else {
						layer.msg(data.info, {
							time: 2000
						});
						$('.zfb_xs_zh').css('border', '1px dashed #807d7d')
						$('.xzf .czje').children('span').css('background', '')
						$('.xzf .czje').children('span').css('color', '#000')
						aid = ''
						aclass = ''

					}
				}

			});
		}

	})

	function DownTick_zfb() {
		var zfb_sss = $('#zfb_djs').html()
		if(zfb_second == '01' && zfb_minute == '00') {
			$('#zfb_pay').hide()
			window.location.reload()
		};
		zfb_second--;
		if(zfb_minute == '4') {
			zfb_minute = "0" + zfb_minute;
		}
		if(zfb_minute == '0') {
			zfb_minute = "0" + zfb_minute;
		}
		if(zfb_second == 00) {
			zfb_second = 59;
			zfb_minute--;
			if(zfb_minute < 10) zfb_minute = "0" + zfb_minute;
		};
		if(zfb_second < 10) zfb_second = "0" + zfb_second;
		$('#zfb_djs').html(zfb_minute + '分' + zfb_second + '秒失效')

	}
	$('#zfb_pay_success').click(function() {
		$('#zfb_pay').hide()
		window.location.reload()
	})
	$('#zfb_close').click(function() {

		$('#zfb_pay').hide()
		window.location.reload()
	})




</script>

</html>